<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFeedbackTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('feedback', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('userid')->comment('用户id');
            $table->string('username', 20)->default('')->comment('用户昵称');
            $table->string('mobile', 20)->default('')->comment('手机号码');
            $table->string('content')->default('')->comment('内容');
            $table->string('type', 20)->default('user')->comment('类型');
            $table->string('osversion', 32)->default('')->comment('系统版本号');
            $table->string('phonetype', 32)->default('')->comment('手机型号');
            $table->string('versioncode', 32)->default('')->comment('app版本');
            $table->integer('cityid')->default(1)->comment('城市id');
            $table->integer('shopid')->default(0)->comment('商家id');
            $table->integer('status', 4)->default(0)->comment('状态，0未处理1已处理');
            $table->integer('adminuserid')->default(1)->comment('处理人id');
            $table->string('note')->nullable()->comment('类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('feedback');
    }
}
